package com.dou.you.che.service.impl.sys;

import com.dou.you.che.service.sys.SysRegionServiceI;
import com.dou.you.che.core.entity.sys.SysRegion;
import com.dou.you.che.core.mapper.sys.SysRegionDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * ����
 * @Author �ƹ�ա�1058118328@qq.com��
 */
@Service
@Transactional(readOnly = true)
public class SysRegionService implements SysRegionServiceI {

    @Autowired
    private SysRegionDao sysRegionDao;

    @Override
    public SysRegion queryObject(Integer id) {
        return sysRegionDao.queryObject(id);
    }

    @Override
    public List<SysRegion> queryList(Map<String, Object> map) {
        return sysRegionDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysRegionDao.queryTotal(map);
    }

    @Override
    @Transactional
    public int save(SysRegion region) {
        return sysRegionDao.save(region);
    }

    @Override
    @Transactional
    public int update(SysRegion region) {
        return sysRegionDao.update(region);
    }

    @Override
    @Transactional
    public int delete(Integer id) {
        return sysRegionDao.delete(id);
    }

    @Override
    @Transactional
    public int deleteBatch(Integer[] ids) {
        return sysRegionDao.deleteBatch(ids);
    }
}
